package com.lin.cloud.disk.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 *  用户内部对象
 * @author ljc
 * @date 2020/12/29 16:59
 */
@Data
public class UserDTO {

    @ApiModelProperty(value = "用户ID", name = "id")
    @NotNull(message = "用户ID不能为空")
    private Long id;

    @ApiModelProperty(value = "用户名", name = "username")
    private String username;

    @ApiModelProperty(value = "用户昵称", name = "nickname")
    private String nickname;

    @ApiModelProperty(value = "用户头像", name = "avatarUrl")
    private String avatarUrl;

    @ApiModelProperty(value = "手机号", name = "phone")
    private Long phone;

    @ApiModelProperty(value = "性别 0 - 男 1 女", name = "sex")
    private Integer sex;

    @ApiModelProperty(value = "最后一次登录时间", name = "lastTime")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastTime;

    @ApiModelProperty(value = "真实姓名", name = "realName")
    private String realName;

    @ApiModelProperty(value = "qq", name = "qq")
    private Long qq;

    @ApiModelProperty(value = "邮箱", name = "email")
    private String email;

    @ApiModelProperty(value = "公司ID", name = "companyId")
    private Long companyId;
}
